package gov.pbc.nn.kjgl.software.view;

import gov.pbc.nn.kjgl.entity.Project;
import gov.pbc.nn.kjgl.software.dao.QueryProjectDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.data.provider.Criteria;
import com.bstek.dorado.data.provider.Page;

@Component("queryProjectPR")
public class QueryProjectPR {
	@Autowired
	private QueryProjectDao querydao;

	@DataProvider
	public void loadQueryProject(Page<Project> page, Criteria criteria) throws Exception {
		this.querydao.loadQueryProject(page, criteria);
	}

	@DataProvider
	public void loadQueryProjectUsername(Page<Project> page, Criteria criteria) throws Exception {
		this.querydao.loadQueryProjectByUsername(page, criteria);
	}
}
